package com.elastic.es;

import com.elastic.bean.Hotel;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

public interface HotelRepository extends ElasticsearchRepository<Hotel,Long> {


    List<Hotel> findAllByIdIn(List<Long> ids);

    List<Hotel> findAllByCityAndPrice(String city,Integer price);

    List<Hotel> findAllByCity(String city);


    void deleteAllByIdIn(List<Long> ids);

    void deleteByCityAndPrice(String city,Integer price);

}
